package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.Note;

public interface NoteDAO {

	public void initDao();

	public void save(Note transientInstance);

	public void delete(Note persistentInstance);

	public Note findById(java.lang.Integer id);

	public List findByExample(Note instance);

	public List findByProperty(String propertyName, Object value);

	public List findBySender(Object sender);

	public List findByReceipt(Object receipt);

	public List findByContent(Object content);

	public List findAll();

	public Note merge(Note detachedInstance);

	public void attachDirty(Note instance);

	public void attachClean(Note instance);

	public NoteDAO getFromApplicationContext(ApplicationContext ctx);
}